/*
 * @Author: lhl 1079161148@qq.com
 * @Date: 2023-07-22 10:59:26
 * @LastEditors: lhl 1079161148@qq.com
 * @LastEditTime: 2023-07-23 21:26:47
 * @FilePath: \door-pc\src\router\index.js
 * @Description: 路由配置
 */
import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '@/views/index.vue';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  }
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () =>
  //     import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
];

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
});

export default router;
